package com.heima.article.jobHandler;

import com.heima.article.service.ApHotArticlesService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class CaclArticlrScore {


    @Autowired
    private ApHotArticlesService apHotArticlesService;


    @XxlJob("calcArticlrscore")
    public ReturnT<String> caclArticlrscore(String param) {
        apHotArticlesService.updateBehavior();
        apHotArticlesService.calcArticlrscore(param);
        return ReturnT.SUCCESS;
    }


}
